package router

import (
	"github.com/gin-gonic/gin"
	"seat-service/api"
)

type InformationRouter struct {
}

func (*InformationRouter) informationGroup(Router *gin.RouterGroup) *gin.RouterGroup {
	information := Router.Group("information")
	informationApi := api.InformationApi{}
	{
		//个人信息
		information.GET("", informationApi.QueryInformation) // 根据学生id获取学生信息
		//预约记录
		information.GET("reservation-record", informationApi.RecordInformation) //  根据学生id获取对应的学生预约记录
		//用户反馈，student_id + 文本框 + 提交按钮
		information.POST("feedback", informationApi.FeedbackInformation)
		//上传头像图片
		information.POST("head", informationApi.UpHead)
		// TODO new 信誉记录
		information.GET("credit-record", informationApi.CreditRecordInformation)
	}
	return information
}
